package com.more.spring.boot.springbootmybatisdemo.pojo;

import lombok.Data;

import java.util.List;

@Data
public class PageResult<T>{

    private List<User> userList;

    private int total;//总条数

    public PageResult() {
    }

    public PageResult(List<User> users, int countData) {
        this.userList = users;
        this.total = countData;
    }
}
